    
<? 
require_once 'includes/funciones.php';
include ("seguridad.php");
conexion();
?>
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php titulo();?></title>
        <link type="text/css"  href="plugins/jq_ui/css/custom-theme/jquery-ui-1.8.14.custom.css" rel="stylesheet"/> 
        <link rel="stylesheet" href="2col_rightNav.css" type="text/css" />
	<link rel="stylesheet" href="plugins/thickbox/thickbox.css" type="text/css" media="screen">
	<script src="plugins/jq_ui/js/jquery-1.4.4.min.js"></script>
	<script  src="plugins/jq_ui/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="plugins/jq_ui/development-bundle/ui/jquery.ui.button.js"></script>
	<script  src="plugins/thickbox/thickbox.js"></script>
<script type="text/javascript">
$(function()
    {
	$( "#boton" )
        	.button()
    })
</script>
<script type="text/javascript">
        $(document).ready(function(){
            $(".row tr:odd").addClass("odd");
            $(".row tr:even").addClass("even");
        });
</script>
</head>
<!-- The structure of this file is exactly the same as 2col_leftNav.html;
     the only difference between the two is the stylesheet they use -->

<body>
    <div   class="supercontendeor">
 <div id="encabezado">
   	<?php
	require_once("encabezado.php");

	?> 
</div>
<!-- fin encabesado -->
<div id="content">
  <div id="breadCrumb"></div>
  <h2 id="pageName">Categorias</h2>
  <div class="feature">

<div align=" right" style=" margin:20px 80px 10px 0 ">
    	<a href="cargar_categoria.php"><button id="boton" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text" style=" font-size:12px; color: #2E6E9E; " ><img   src="images/add.png" alt="add" ></img>Agregar Categoria</span></button></a>
</div>
   

<div id="resultado"  class="row"  >
      <table width="612" border="0" cellspacing="0" id="tablelist" >
        <tr align="center" class="ui-widget-header" style=" font-size:13px;"  >
          <td width="173"  >Categoria</td>
		  <td width="123"  >Descripcion</td>

	      
          <td  >&nbsp;</td>
          <td width="37" >&nbsp;</td>


		  
        </tr>
		<?php 
		$result=mysql_query("select cat.id as id, cat.nombre as n, cat.descripcion as des from samptyt.categoria1 as cat ORDER BY n" );

while($row=mysql_fetch_array($result))
		{?>
        <tr    style=" font-size:11px;" >
          <td align="left" style="text-transform:  uppercase; width: 150px; text-align: left; padding:5px 10px 5px 10px; font-size:12px;  font-weight:bold; text-align:justify"> <?php echo $row['n']; ?></td>
		   <td lign="left"><?php echo $row['des']; ?></td>
			<td align="center"><a href=""></a></td>
			<td >
		  		<div align="center">
					<a href="modificar_categoria.php?var=<?php echo $row['id']?>"><img src="images/edit.png" alt="edit"  ><?php //echo $row['id']?>
				</div>
			</td>
        
        </tr>
    
      

	 
      <?php }
  


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>  </table></div>
     
  </div>
  <div class="story">
    <h3>&nbsp;</h3>
  </div>
  <div class="story"></div>
</div>
<!--end content -->
<div id="menuderecha">
     	<?php
	require_once("menuderecha.php");

	?> 
</div>
<!--fin menuderecha -->
<div id="footer">
     	<?php
	require_once("footer.php");

	?> 
</div>

<br />
    </div>
</body>
</html>